package com.qitmiaojie.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qitmiaojie.controller.utils.Result;
import com.qitmiaojie.pojo.Material;
import com.qitmiaojie.pojo.Matertask;
import com.qitmiaojie.service.MaterialService;
import com.qitmiaojie.service.MatertaskService;
import com.qitmiaojie.mapper.MatertaskMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.function.Function;
import java.util.stream.Collectors;

/**
* @author Administrator
* @description 针对表【matertask】的数据库操作Service实现
* @createDate 2023-03-16 15:35:06
*/
@Service
public class MatertaskServiceImpl extends ServiceImpl<MatertaskMapper, Matertask>
    implements MatertaskService{

    @Autowired
    private StringRedisTemplate redisTemplate;




    @Override
    public Long Create(Long Id,Integer userId, Integer Material) {
        Matertask matertask = new Matertask();
        matertask.setId(Id);
        matertask.setUid(userId);
        matertask.setMid(Material);

        super.save(matertask);


        return matertask.getId();
    }


}




